// 默认选中的日期
let timestamp = new Date().getTime();
let startTime = timestamp - 30 * 24 * 60 * 60 * 1000;
let endTime = timestamp;
// 搜索选项
const filterOption = {
    items: [
        {
            label: "预约人",
            type: "input",
            key: 'name',
            data: 'name',
            method: "input",
            placeholder: "请输入预约人姓名",
            value: undefined
        },
        {
            label: "手机号",
            type: "input",
            key: 'phone',
            data: 'phone',
            method: "input",
            placeholder: "请输入预约人手机号",
            value: undefined
        },
        {
            label: '预约来源',
            type: "dropdown",
            key: 'source',
            data: [
                
            ],
            method: "dropdown",
            placeholder: '请选择',
            value: undefined
        },
        {
            label: '创建人',
            type: "dropdown",
            key: 'createBy',
            data: [
                
            ],
            method: "dropdown",
            placeholder: '请选择',
            value: undefined
        },
        {
            label: "创建日期",
            type: "daterange",
            key: 'createTime',
            data: "createTime",
            placeholder: '请选择',
            value: undefined
        },
        {
            label: "预约日期",
            type: "daterange",
            key: 'reservationTime',
            data: "reservationTime",
            placeholder: '请选择',
            value: undefined
        }
    ],
    btnGroup: [
        
    ],
    close: false
}
// 列表项
const scheduledListItem = [
    {
        prop: "reservationNumber",
        label: "ID",
        width: "190"
    },
    {
        prop: "name",
        label: "预约人",
        width: "80"
    },
    {
        prop: "phone",
        label: "手机号",
        width: "120"
    },
    {
        prop: "shop",
        label: "预约门店",
        width: "160"
    },
    {
        prop: "source",
        label: "预约来源",
        width: "120"
    },
    {
        prop: "sex",
        label: "性别",
        width: "60"
    },
    {
        prop: "regularCustomer",
        label: "老客户",
        width: "70"
    },
    {
        prop: "checkTagGroupCustomer",
        label: "客户标签（客服）",
        width: "190"
    },
    {
        prop: "checkTagGroupShop",
        label: "客户标签（门店）",
        width: "190"
    },
    {
        prop: "reservationDate",
        label: "预约日期",
        width: "130"
    },
    {
        prop: "reservationTime",
        label: "预约时间段",
        width: "150"
    },
    {
        prop: "createUser",
        label: "创建人",
        width: "80"
    },
    {
        prop: "createTime",
        label: "创建时间",
        width: "160"
    },
    {
        prop: "supportStaff",
        label: "最后跟进人",
        width: "100"
    },
    {
        prop: "updateTime",
        label: "最后跟进时间",
        width: "160"
    },
]
// 创建预约
const createScheduleOption = {
    items: [
        {
            label: '预约来源',
            type: "dropdown",
            key: 'duty',
            data: [
                {
                    label: "戴瑞珠宝",
                    value: "戴瑞珠宝"
                },
                {
                    label: "供应商",
                    value: "供应商"
                }
            ],
            method: "dropdown",
            placeholder: '请选择',
            value: undefined
        },
        {
            label: '预约地区',
            type: "dropdown",
            key: 'duty',
            data: [
                {
                    label: "戴瑞珠宝",
                    value: "戴瑞珠宝"
                },
                {
                    label: "供应商",
                    value: "供应商"
                }
            ],
            method: "dropdown",
            placeholder: '请选择',
            value: undefined
        },
        {
            label: '预约门店',
            type: "dropdown",
            key: 'duty',
            data: [
                {
                    label: "戴瑞珠宝",
                    value: "戴瑞珠宝"
                },
                {
                    label: "供应商",
                    value: "供应商"
                }
            ],
            method: "dropdown",
            placeholder: '请选择',
            value: undefined
        },
        {
            label: "预约人",
            type: "input",
            key: 'customCode',
            data: "customCode",
            method: "input",
            placeholder: "",
            value: undefined
        },
        {
            label: "手机号",
            type: "input",
            key: 'customCode',
            data: "customCode",
            method: "input",
            placeholder: "",
            value: undefined
        },
        {
            label: "性别",
            type: "dropdown",
            key: 'gender',
            data: [
                {
                    label: "男",
                    value: "male"
                },
                {
                    label: "女",
                    value: "female"
                }
            ],
            method: "input",
            placeholder: "",
            value: 'male'
        },
    ]
}
export default {
    filterOption,
    scheduledListItem,
    createScheduleOption
}